<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<!-- Apple devices fullscreen -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<!-- Apple devices fullscreen -->
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<!-- <base target="mainFrame" /> -->
<link rel="stylesheet" type="text/css" href="{$CSS}wm/index.css" media="all" />
<link rel="stylesheet" type="text/css" href="{$CSS}wm/bootstrap_min.css" media="all" />
<link rel="stylesheet" type="text/css" href="{$CSS}wm/bootstrap_responsive_min.css" media="all" />
<link rel="stylesheet" type="text/css" href="{$CSS}wm/style.css" media="all" />
<link rel="stylesheet" type="text/css" href="{$CSS}wm/themes.css" media="all" />
<link rel="stylesheet" type="text/css" href="{$CSS}wm/todc_bootstrap.css" media="all" />
<link rel="stylesheet" type="text/css" href="{$CSS}wm/inside.css" media="all" />
<title>{$_SERVER['WEB_NAME']}—国内最专业的小程序管理平台</title>
<link rel="shortcut icon" href="/favicon.ico" />
<style type="text/css">
  /*dao hang*/
  .public-header-nav{
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    padding-top: 8px;
    display: flex;
    align-items: center;
    padding-left: 0;
    /*margin-right: 10px;*/
    margin: 0;
  }
  .public-header-nav li{
    line-height: 40px;
    padding: 0 15px;
    list-style: none;
  }
  .public-header-nav li a{
    color: #333;
    font-size: 14px;
    border-bottom: 2px solid #fff;
    text-decoration: none;
  }
  .public-header-nav-active{
    color: #1E9FFF !important;
    border-bottom: 2px solid #1E9FFF !important;
  }
</style>
</head>
<body class="{Session::get('maintheme')}" data-theme="theme-blue">
	<ul class="public-header-nav">
      <li><a href="balance.html" target="_self">账户充值</a></li>
      <li><a href="updatePwd.html" target="_self">修改密码</a></li>
      <li class="public-header-nav-active"><a href="myAccount.html" target="_self">升级续费</a></li>
      <li><a href="sms/balance.html" target="_self">短信余额</a></li>
      <li><a href="sms/sendRecord.html" target="_self">短信发送记录</a></li>
    </ul>
    <div id="main">
        <div class="container-fluid">

            <div class="row-fluid">
                <div class="span12">
                    <div class="box">
                        <!-- <div class="box-title">
                            <div class="span10">
                                <h3><i class="icon-edit"></i>请如实填写您的个人信息</h3>
                            </div>
                            <div class="span2"><a class="btn" href="Javascript:window.history.go(-1)">返回</a></div>
                        </div> -->

                        <div class="box-content">


                            <form id="accountform" action="" method="post" class="form-horizontal form-validate" novalidate="novalidate">
                                 {$user->hidden('id')}
                                <div class="control-group">
                                    <label for="name" class="control-label">用户名 :</label>
                                    <div class="controls">
                                        {$user->un} : <span style="color:red;">当前会员等级：{$yhlx_arr[$user->level_id]} </span><a class="btn btn-info btn-sm" target="_self" href="javascript:tochongzhi();">升级续费</a>
                                    </div>
                                </div>

                                <div class="control-group">
                                    <label for="mobile" class="control-label">手机号码：</label>
                                    <div class="controls">
                                    {$user->text('telephone','class="input-medium"')}
                                    <span class="maroon">*</span><span class="help-inline"></span>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="qq" class="control-label">常用QQ号码：</label>
                                    <div class="controls">
                                     {$user->text('qq',' noneed="1" class="input-medium"')}
                                     <span class="maroon">*</span>
                                    </div>
                                </div>
								  <div class="control-group">
                                    <label for="email" class="control-label">常用email：</label>
                                    <div class="controls">
                                    {$user->email('email','class="input-medium"')}
                                    <span class="maroon">*</span>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="email" class="control-label">开户时间 :</label>
                                    <div class="controls">
                                        <b class="text-warning">{$user->rtime}</b><p></p>
                                    </div>
                                </div>
								<!-- 
								<div class="control-group">
                                    <label for="email" class="control-label">会员级别 :</label>
                                    <div class="controls">
                                        <b class="text-warning">{translate_level($user->next_level_id)}</b>
                                        <p>到期时间 :{if $user->mendtime == 0}
	      [永久免费]
          {else}
          {$user->mendtime}
          {/if}</p>
                                    </div>
                                </div>
								<div class="control-group">
                                    <label for="email" class="control-label">升级级别 :</label>
                                    <div class="controls">
                                        <b class="text-warning">{translate_level($user->level_id)}</b>
                                        <p>到期时间 :{if $user->next_mendtime == 0}
	                       [暂无]
	       {else}
	       {$user->next_mendtime}
	      {/if}</p>
                                    </div>
                                </div>
 -->
                                <div class="form-actions">
                                    <button type="submit" class="btn btn-primary">保存</button>
                                    <a class="btn" href="Javascript:window.history.go(-1)">取消</a>

                                </div>
                            </form>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>

<div id="fallr-overlay"></div>
<script src="/cdn/jquery.js"></script>
<script src="/layui/layui.js"></script>
<script src="/js/ajax.js"></script>
<script type="text/javascript">
    layui.use('form', function(){
      var form = layui.form;
      
      //监听提交
      form.on('submit(formDemo)', function(data){
        layer.msg(JSON.stringify(data.field));
        return false;
      });

    });

</script>
<script type="text/javascript">
$(function(){
	$("#accountform").submit(function(){
		var cansv= true;
		$(this).find('input[type="text"]').each(function(){
			if($.trim($(this).val())=='' && $(this).attr('noneed')!='1'){
				cansv = false;
				$(this).css('backgroundColor','yellow');
				$(this).one('focus',function(){
					$(this).css('backgroundColor','transparent');
				});
			}
		});
		if(!cansv){
			tusi('请将信息填写完整');
			return false;
		}
	});
});

function tochongzhi(){
    layer.open({
        type: 2,
        title: '',
        shadeClose: true,
        shade: 0.2, 
        area: ['700px', '600px'],
        content: 'zuizhongchongzhi.html'
    }); 
}
</script>

<br/><br/><br/></body>
</html>
